.loginContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.3s ease;

  &.lightTheme {
    background-color: #ffffff;
    color: #333;
  }

  &.darkTheme {
    background-color: #141414;
    color: #fff;

    .loginLeft {
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    }

    .blueShape {
      background: linear-gradient(135deg, #177ddc 0%, #0958d9 100%);
    }

    .illustrationFigure::before {
      background: #262626;
    }

    .floatingUiCard {
      background: rgba(40, 40, 40, 0.95);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);

      &:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
      }
    }

    .whiteFeather {
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .loginRight {
      background: #141414;
    }

    .loginTitle {
      color: #fff;
    }

    .loginInput {
      background: #1f1f1f;
      border-color: #434343;
      color: #fff;

      &:hover {
        border-color: #177ddc;
      }

      &:focus {
        border-color: #177ddc;
        box-shadow: 0 0 0 2px rgba(23, 125, 220, 0.2);
      }
    }

    .captchaContainer {
      background: #1f1f1f;
      border-color: #434343;

      &:hover {
        border-color: #177ddc;
      }
    }

    .captchaRefresh {
      color: #bfbfbf;

      &:hover {
        color: #177ddc;
      }
    }

    .forgotPassword {
      color: #177ddc;

      &:hover {
        color: #3c9ee5;
      }
    }

    .altLoginBtn {
      border-color: #434343;
      background: #1f1f1f;
      color: #bfbfbf;

      &:hover {
        border-color: #177ddc;
        color: #3c9ee5;
      }
    }

    .divider::before,
    .divider::after {
      background: #434343;
    }

    .loginFooter {
      color: #595959;
    }
  }
}

// 右上角控制栏
.loginHeaderControls {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  align-items: center;
}

.langBtn {
  color: inherit;
}

// 主要内容区域
.loginContent {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

// 左侧插画区域
.loginLeft {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf0 100%);
}

.loginIllustration {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

// 蓝色抽象形状
.blueShape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-15deg);
  opacity: 0.8;
}

// 插画人物和 UI 元素
.illustrationFigure {
  position: relative;
  z-index: 10;
  width: 500px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;

  // 人物插图（使用 CSS 绘制简化版）
  &::before {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 60px 60px 20px 20px;
    z-index: 1;
  }
}

.floatingUiCard {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
  transition: transform 0.3s ease;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
}

.card1 {
  top: 80px;
  left: 80px;
  width: 140px;
  height: 90px;
}

.card2 {
  top: 180px;
  left: 240px;
  width: 120px;
  height: 80px;
  z-index: 3;
}

.card3 {
  top: 280px;
  left: 120px;
  width: 110px;
  height: 70px;
}

.cardMenu {
  width: 100%;
  height: 3px;
  background: #8c8c8c;
  margin-bottom: 6px;
  border-radius: 2px;
  position: relative;

  &::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #8c8c8c;
    margin-top: 4px;
    border-radius: 2px;
  }

  &::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #8c8c8c;
    margin-top: 4px;
    border-radius: 2px;
  }
}

.cardDots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;

  &::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #bfbfbf;
    border-radius: 50%;
  }

  &::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #bfbfbf;
    border-radius: 50%;
  }
}

.cardRedDot {
  width: 12px;
  height: 12px;
  background: #ff4d4f;
  border-radius: 50%;
  margin-top: 8px;
  position: relative;

  &::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
  }
}

.cardPlus {
  width: 20px;
  height: 20px;
  border: 2px solid #1890ff;
  border-radius: 4px;
  margin-top: 8px;
  position: relative;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1890ff;
  }

  &::before {
    width: 12px;
    height: 2px;
  }

  &::after {
    width: 2px;
    height: 12px;
  }
}

.whiteFeather {
  position: absolute;
  bottom: 80px;
  left: 180px;
  width: 35px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 0 50%;
  transform: rotate(-35deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

// 右侧登录表单区域
.loginRight {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: #ffffff;
}

.loginFormWrapper {
  width: 100%;
  max-width: 420px;
}

// Logo 和标题
.loginLogo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.logoIcon {
  font-size: 32px;
}

.loginTitle {
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: #262626;
}

// 登录表单
.loginForm {
  width: 100%;
}

.loginInput {
  border-radius: 4px;

  :global(.ant-input-prefix) {
    color: #8c8c8c;
  }
}

.captchaFormItem {
  .loginInput {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: 8px;
  }

  :global(.ant-input-suffix) {
    display: flex;
    align-items: center;
    padding-right: 0;
  }
}

// 验证码
.captchaContainer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 8px;
  cursor: pointer;
  min-width: 110px;
  height: 32px;
  justify-content: space-between;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 8px;
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;

  &:hover {
    border-color: #40a9ff;
  }
}

.captchaCode {
  font-size: 20px;
  font-weight: bold;
  color: #ff4d4f;
  letter-spacing: 4px;
  user-select: none;
  transform: skew(-8deg) perspective(100px) rotateY(-5deg);
  display: inline-block;
  font-family: 'Courier New', monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.captchaRefresh {
  padding: 0;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
  transition: color 0.3s ease;

  &:hover {
    color: #1890ff;
  }
}

// 登录选项
.loginOptions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.forgotPassword {
  color: #1890ff;
  text-decoration: none;

  &:hover {
    color: #40a9ff;
  }
}

// 登录按钮
.loginButton {
  height: 44px;
  font-size: 16px;
  font-weight: 500;
  background: #52c41a;
  border-color: #52c41a;
  border-radius: 4px;

  &:hover {
    background: #73d13d;
    border-color: #73d13d;
  }

  &:focus {
    background: #52c41a;
    border-color: #52c41a;
  }
}

// 替代登录方式
.loginAlternatives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.altLoginBtn {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #595959;
  background: #fff;

  &:hover {
    border-color: #40a9ff;
    color: #40a9ff;
  }
}

// 第三方登录
.thirdPartyLogin {
  margin-top: 32px;
}

.divider {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
  color: #8c8c8c;
  font-size: 14px;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #f0f0f0;
  }

  &::before {
    left: 0;
  }

  &::after {
    right: 0;
  }
}

.socialIcons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.socialIcon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

// 版权信息
.loginFooter {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #8c8c8c;
  font-size: 12px;
}

// 响应式设计
@media (max-width: 768px) {
  .loginContent {
    flex-direction: column;
  }

  .loginLeft {
    display: none;
  }

  .loginRight {
    padding: 20px;
  }

  .loginAlternatives {
    grid-template-columns: 1fr;
  }
}

